home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / casm / au116-as.exe / UTIL / FIX_PATH.CPP < prev    next >
C/C++ Source or Header  |  1993-12-05  |  446b  |  20 lines

  1. #include "..\au.hpp"
  2. /*************************************************************************/
  3. void fix_path(char *path)
  4. {
  5.     char *ptr;
  6.  
  7.     ptr = path;
  8.     while (*ptr != '\0')
  9.     {
  10.         if (*ptr == '/')          /* Replace forward slash with backslash */
  11.             *ptr = '\\';
  12.         else if (*ptr == ',')     /* Replace comma with period */
  13.             *ptr = '.';
  14.         else if (*ptr == ';')     /* Replace ; with : */
  15.             *ptr = ':';
  16.         ptr++;
  17.     }
  18.     return;
  19. }
  20.